package com.dmall.modules.admin.entity;

import tk.mybatis.mapper.annotation.NameStyle;
import tk.mybatis.mapper.code.Style;

import javax.persistence.*;
import java.util.Date;

/**
 * 管理员角色
 * @author Chen 2017/12/4
 */
@Table(name = "admin_role")
public class AdminRole extends BaseEntity {
    private Long id;
    private String name;
    private String description;//角色描述
    private Date createTime;

    public AdminRole(String name, String description, Date createTime) {
        this.name = name;
        this.description = description;
        this.createTime = createTime;
    }

    public AdminRole() {
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
